<?php
	include_once 'inc/db.php';
	include_once 'inc/security.php';
	$cn = new db_mysqli();
	sec_session_start();
	
	if (login_check($cn) == false) {
		header('location: '.LOGIN);
	} else {
		header('location: base.php');
	}
?>